
const routes = [
    {
        // 主页面
        path: '/',
        component: () => import('@/view/Main.vue'),
        children: [
            {
                // 首页
                path: '/',
                name: 'index',
                component: () => import('@/view/home')
            },
            {
                // 首页
                path: '/home',
                name: 'home',
                component: () => import('@/view/home')
            },
            {
                // 产品列表
                path: '/product',
                name: 'product',
                component: () => import('@/view/product')
            },
            {
                // 产品详情
                path: '/product/detail/:id',
                name: 'product_detail',
                component: () => import('@/view/product/detail')
            },
        ]
    },
    {
        path: '*',
        component: () => import('@/view/error/404.vue')
    }
];
export default routes;